package com.yunhe.policyfulfillment.policyful.model;

import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import org.springframework.format.annotation.DateTimeFormat;
import org.springframework.web.bind.annotation.RequestParam;

import java.io.Serializable;
import java.util.Date;

/**
 * @ClassName: BannerQueryCondition
 * @Description:
 * @author: GongDaCheng
 * @Date: 16:02 2021/7/23
 */
@Data
@ApiModel(value = "BannerQueryCondition",description = "banner查询对象")
public class BannerQueryCondition implements Serializable {

    private static final long serialVersionUID = -5817758899631603380L;

    @ApiModelProperty(value = "title",required = false)
    private String title;
    @ApiModelProperty(value = "publishPerson",required = false)
    private Long publishPerson;
    @ApiModelProperty(value = "startTime",required = false)
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss" )
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private String startTime;
    @ApiModelProperty(value = "endTime",required = false)
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss" )
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private String endTime;

    @ApiModelProperty(value = "page",required = true)
    private int page;

    @ApiModelProperty(value = "size",required = true)
    private int size;
}
